<%-- $RCSFile: EditProfile.aspx $
 Apache license v2 2011 by Christian Surieux
 $Source: ?/AddonNice/Secure2/EditProfile.aspx $
 $log$
 Revision 27 2011/01/21 17:51:08  christian.surieux
   Recover from Sony move files updated in 11/2010 were not in Source Control
 Revision 6 2010/08/09 10:51:22  christian.surieux
   Added Log comment to all .aspx .ascx .master files 
 --%>
<%@ Page Language="C#" AutoEventWireup="False" CodeBehind="EditProfile.aspx.cs" Inherits="AddonNice.Secure.EditProfile" MasterPageFile="~/MasterPages/ADNSecure.Master" %>
<%@ Register TagPrefix="cc1" Namespace="AddonNice.Configuration" Assembly="ADNCRM.Core" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="Telerik" %>
<asp:Content  ID='Content0' runat='server' ContentPlaceHolderID='ContentTitle'>
      <asp:literal id="lblTitle" runat="server" Text="<%$ Resources:ADNCRM,PROFILE_TITLE %>"  />
</asp:Content>
<asp:Content ID="Content1" runat='server' ContentPlaceHolderID='ContentPlaceHolderButtons2'>
    <asp:PlaceHolder ID="PlaceHolderButtons2" runat="server" />
</asp:Content>
<asp:Content ID="Content2" runat='server' ContentPlaceHolderID='SecuredContent'>
    <Telerik:radformdecorator id="FormDecorator1" runat="server" decoratedcontrols="Default" />
    <asp:ScriptManagerProxy ID="ADNSCMPProfile" Runat="server" />
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" CausesValidation='false' SelectedIndex='0' >
        <Tabs>
            <telerik:RadTab runat="server" TabIndex='0' PageViewID="PageView1" Text="<%$ Resources:ADNCRM,PROFILE_PERSONNAL_TAB%>" />
            <telerik:RadTab runat="server" TabIndex='1' PageViewID="PageView2" Text="<%$ Resources:ADNCRM,PROFILE_BILLING_TAB %>" />
            <telerik:RadTab runat="server" TabIndex='2' PageViewID="PageView3" Text="<%$ Resources:ADNCRM,PROFILE_SHIPPING_TAB %>" />
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex='0' >
        <telerik:RadPageView ID="RadPageView1" runat="server">
            <table cellpadding='0' cellspacing='0' style="width: 700px">
			    <tr>
				    <td style="width: 150px">
					    <asp:Label id="FirstNameLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_FIRSTNAME %>" />
				    </td>
				    <td style="width: 400px">
				        <asp:TextBox id="FirstNameField" runat="server" style="width: 300px" />
				    </td>
				    <td style="width: 150px"></td>
			    </tr>
			    <tr>
				    <td style="width: 150px">
					    <asp:Label id="NameLabel" runat="server" Text="<%$ Resources:ADNCRM,NAME %>"  />
				    </td>
				    <td style="width: 400px">
				        <asp:TextBox id="NameField" runat="server" style="width: 300px" /></td>
				    <td style="width: 150px">
					    <asp:RequiredFieldValidator id="RequiredName"  ValidationGroup='Main' Display='Dynamic' runat="server" CssClass='Error' 
					        ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_USERNAME_REQ %>" ToolTip="<%$ Resources:ADNCRM,REGISTERCRM_USERNAME_REQ %>"
						    ControlToValidate="NameField" >*</asp:RequiredFieldValidator>
				    </td>
			    </tr>
                <tr>
                    <td style="width: 150px">
                        <asp:Label ID="LBNickname" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_NICKNAME %>" />
                    </td>
                    <td style="width: 400px">
                        <asp:TextBox ID="NicknameField" runat="server" style="width: 300px"  />
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td style="width: 150px">
                        <asp:Label ID="Label1" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_EMAIL %>" />
                    </td>
                    <td>
                        <asp:TextBox ID="EmailField" runat="server" style="width: 300px"  />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="EmailField" CssClass='Error' 
                            ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_EMAIL_REQ %>" ToolTip="<%$ Resources:ADNCRM,REGISTERCRM_EMAIL_REQ %>"
                            ValidationGroup="Main">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
			    <tr id='CompanyRow' runat="server">
				    <td>
					    <asp:Label id="CompanyLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_COMPANY %>" EnableViewState="False"/>
				    </td>
				    <td >
				        <asp:TextBox id="CompanyField" runat="server" style="width: 300px"  />&nbsp;&nbsp;
				    </td>
				    <td></td>
			    </tr>
			    <tr id='SicRow' runat="server">
				    <td>
        			    <asp:Label ID="LbSci" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_SIC %>" />&nbsp;&nbsp;
				    </td>
				    <td>
				        <asp:TextBox id="SicField" runat="server" style="width: 300px" />
				    </td>
				    <td></td>
				</tr>
                <tr>
                    <td colspan='3'>
                        <asp:CheckBox ID="CheckBoxSendNewsletter" Text="<%$ Resources:ADNCRM,REGISTERCRM_SEND_NEWSLETTER %>" Checked='True' runat="server" /><br />
                    </td>
                </tr>
				<tr id='rowPwd' runat="server" >
                    <td colspan='3' >
                        <fieldset id="Fieldset1" class='SettingsTableFieldSet' runat="server">
                            <legend id="legend"  class='SettingsTableLegend' runat="server">
                                <asp:CheckBox ID="ChkChangePwd" Text="<%$ Resources:ADNCRM,REGISTERCRM_CHANGE_PWD %>" Checked='False' runat="server" />
                            </legend>
                            <table  cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td style="width: 150px; margin-left:5px;">
                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Text="<%$ Resources:ADNCRM,REGISTERCRM_PWD %>" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Password" runat="server" TextMode="Password" style="width: 300px"  />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px; margin-left:5px;">
                                        <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword" Text="<%$ Resources:ADNCRM,REGISTERCRM_PWD2 %>" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password" style="width: 300px"  />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px ;margin-left:5px;">
                                        <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question" Text="<%$ Resources:ADNCRM,REGISTERCRM_QUESTION %>" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Question" runat="server" style="width: 300px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px; margin-left:5px;">
                                        <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer" Text="<%$ Resources:ADNCRM,REGISTERCRM_ANSWER %>"/>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Answer" runat="server" style="width: 300px"    />
                                   </td>
                                </tr>
                                <tr>
                                <td colspan='2' style='margin-left:5px;'>
                                    <asp:Label ID="LblErr" runat="server"  CssClass='Error' EnableViewState="false" />
                                </td>
                                </tr>
                            </table>
                        </fieldset>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="3" >
                        <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False" />
                    </td>
                </tr>
			</table>
        </telerik:RadPageView>
        <telerik:RadPageView ID="PageView2" runat="server">
            <table cellpadding='0' cellspacing='0' style="width: 700px">
			<tr>
				<td style="width: 150px">
					<asp:Label id="AddressLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_ADDRESS1 %>" EnableViewState="False"/>
				</td>
				<td colspan='2' style="width: 550px">
				    <asp:TextBox id="AddressField1" runat="server" style="width: 500px" />
                    <asp:RequiredFieldValidator ID="BillingAddress1Required" runat="server" CssClass='Error' 
                        ControlToValidate="AddressField1" 
                        ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_BILLING_ADDRESS_REQ %>"
                        ToolTip="<%$ Resources:ADNCRM,REGISTERCRM_BILLING_ADDRESS_REQ %>" 
                        ValidationGroup="Billing">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
				<td style="width: 150px">
					<asp:Label id="Label2" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_ADDRESS2 %>" EnableViewState="False"/>
				</td>
				<td colspan='2' style="width: 550px">
				    <asp:TextBox id="AddressField2" runat="server" style="width: 500px" />
                </td>
            </tr>
            <tr>
				<td style="width: 150px">
					<asp:Label id="Label3" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_ADDRESS3 %>" EnableViewState="False"/>
				</td>
				<td colspan='2' style="width: 550px">
				    <asp:TextBox id="AddressField3" runat="server" style="width: 500px" />
			    </td>
			</tr>
			<tr>
				<td style="width: 150px">
					<asp:Label id="CityLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_CITY %>" EnableViewState="False"/>
				</td>
				<td style="width: 400px">
				    <asp:TextBox id="CityField" runat="server" style="width: 300px" />
				</td>
				<td>
                    <asp:RequiredFieldValidator ID="BillingCityRequired" runat="server" CssClass='Error' 
                        ControlToValidate="CityField" ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_BILLING_CITY_REQ %>"
                        ToolTip="<%$ Resources:ADNCRM,REGISTERCRM_BILLING_CITY_REQ %>" ValidationGroup="Billing">*</asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
				<td style="width: 150px">
					<asp:Label id="ZipLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_ZIP %>" EnableViewState="False" />
				</td>
				<td style="width: 400px">
				    <asp:TextBox id="ZipField" runat="server" style="width: 300px"  />
				</td>
				<td>
                    <asp:RequiredFieldValidator ID="BillingZipRequired" runat="server" CssClass='Error' 
                        ControlToValidate="ZipField" ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_BILLING_ZIP_REQ %>" 
                        ToolTip="<%$ Resources:ADNCRM,REGISTERCRM_BILLING_ZIP_REQ %>"  ValidationGroup="Billing">*</asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
				<td>
					<asp:Label id="CountryLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_COUNTRY %>" />
				</td>
				<td>
    				<Telerik:RadComboBox  id="RadCountryField" runat="server" style="width: 300px"  />
				</td>
				<td>
                    <asp:RequiredFieldValidator ID="BillingCountryRequired" runat="server" CssClass='Error' 
                        ControlToValidate="RadCountryField" ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_BILLING_COUNTRY_REQ %>" 
                        ToolTip="<%$ Resources:ADNCRM,REGISTERCRM_BILLING_COUNTRY_REQ %>" ValidationGroup="Billing">*</asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr id="StateRow" runat="server">
				<td style="width: 150px">
					<asp:Label id="StateLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_STATE %>" />
				</td>
				<td style="width: 400px">
    				<Telerik:RadComboBox  id="RadStateField" runat="server" style="width: 300px"  />
				</td>
				<td style="width: 150px">
				</td>
			</tr>
			<tr>
				<td>
					<asp:Label id="PhoneLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_PHONE %>" EnableViewState="False"/>
				</td>
				<td>
				    <asp:TextBox id="PhoneField" runat="server" style="width: 300px" />
				</td>
				<td>    
                    <asp:RequiredFieldValidator ID="BillingPhoneRequired" runat="server" CssClass='Error' 
                        ControlToValidate="PhoneField" 
                        ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_BILLING_PHONE_REQ %>"
                        ToolTip="<%$ Resources:ADNCRM,REGISTERCRM_BILLING_PHONE_REQ %>" ValidationGroup="Billing">*</asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
				<td>
					<asp:Label id="FaxLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_FAX %>" EnableViewState="False" />
				</td>
				<td>
				    <asp:TextBox id="FaxField" runat="server" style="width: 300px" />
				</td>
				<td></td>
			</tr>
		</table>
        </telerik:RadPageView>
        <telerik:RadPageView ID="PageView3" runat="server">
            <table cellpadding='0' cellspacing='0' >
	            <tr>
		            <td colspan="3" style="width: 700px; margin-top:20px" >
			            <asp:LinkButton id="CopyShippingBtn" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM__COPY_FRM_BILLING %>" />
			            <br />
		            </td>
	            </tr>
	            <tr>
		            <td style="width: 150px" >
			            <asp:Label id="ShipAddressLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_ADDRESS1 %>" EnableViewState="False"/>
		            </td>
		            <td colspan= '2' style="width: 550px" >
		                <asp:TextBox id="ShipAddressField1" runat="server" style="width: 500px" />
		                <asp:RequiredFieldValidator ID="FVShippingAddress1Required" runat="server" CssClass='Error' 
                                ControlToValidate="ShipAddressField1" 
                                ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_SHIPPING_ADDRESS_REQ %>"
                                ToolTip="<%$ Resources:ADNCRM,REGISTERCRM_SHIPPING_ADDRESS_REQ %>" 
                                ValidationGroup="Shipping">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
				    <td style="width: 150px">
					    <asp:Label id="Label4" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_ADDRESS2 %>" EnableViewState="False"/>
				    </td>
				    <td colspan='2' style="width: 550px">
		                <asp:TextBox id="ShipAddressField2" runat="server" style="width: 500px" />
                    </td>
                </tr>
                <tr>
				    <td style="width: 150px">
					    <asp:Label id="Label5" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_ADDRESS3 %>" EnableViewState="False"/>
				    </td>
				    <td colspan='2' style="width: 550px">
		                <asp:TextBox id="ShipAddressField3" runat="server" style="width: 500px" />
	                </td>
	            </tr>
	            <tr>
		            <td style="width: 150px">
			            <asp:Label id="ShipCityLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_CITY %>" EnableViewState="False"/>
		            </td>
		            <td style="width: 400px">
		                <asp:TextBox id="ShipCityField" runat="server" style="width: 300px" />
		            </td>
		            <td style="width: 150px">
                        <asp:RequiredFieldValidator ID="FVTShippingCity" runat="server" CssClass='Error' 
                            ControlToValidate="ShipCityField" ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_SHIPPING_CITY_REQ %>"
                            ToolTip="<%$ Resources:ADNCRM,REGISTERCRM_SHIPPING_CITY_REQ %>" ValidationGroup="Shipping">*</asp:RequiredFieldValidator>
		            </td>
	            </tr>
	            <tr>
		            <td style="width: 150px">
			            <asp:Label id="ShipZipLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_ZIP %>" EnableViewState="False" />
		            </td>
		            <td style="width: 400px">
		                <asp:TextBox id="ShipZipField" runat="server" style="width: 300px" />
		            </td>
		            <td>
                        <asp:RequiredFieldValidator ID="FVTBShippingZip" runat="server" CssClass='Error' 
                            ControlToValidate="ShipZipField" ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_SHIPPING_ZIP_REQ %>" 
                            ToolTip="<%$ Resources:ADNCRM,REGISTERCRM_SHIPPING_ZIP_REQ %>"  ValidationGroup="Shipping">*</asp:RequiredFieldValidator>
		            </td>
	            </tr>
	            <tr>
		            <td style="width: 150px">
			            <asp:Label id="ShipCountryLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_COUNTRY %>" />
		            </td>
		            <td style="width: 400px">
			            <Telerik:RadComboBox  id="RadShipCountryField" runat="server" style="width: 300px" />
		            </td>
		            <td>
                        <asp:RequiredFieldValidator ID="FVDDLShippingCountry" runat="server" CssClass='Error' 
                            ControlToValidate="RadShipCountryField" ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_SHIPPING_COUNTRY_REQ %>" 
                            ToolTip="<%$ Resources:ADNCRM,REGISTERCRM_SHIPPING_COUNTRY_REQ %>" ValidationGroup="Shipping">*</asp:RequiredFieldValidator>
		            </td>
	            </tr>
	            <tr id="ShipStateRow" runat="server">
		            <td style="width: 150px">
			            <asp:Label id="ShipStateLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_STATE %>" />
		            </td>
		            <td style="width: 400px">
			            <Telerik:RadComboBox  id="RadShipStateField" runat="server" style="width: 300px" />
		            </td>
		            <td style="width: 150px">
		            </td>
	            </tr>
	            <tr>
		            <td style="width: 150px">
			            <asp:Label id="ShipPhoneLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_PHONE %>" EnableViewState="False"/>
		            </td>
		            <td style="width: 400px">
		                <asp:TextBox id="ShipPhoneField" runat="server" style="width: 300px" />
		            </td>
		            <td></td>
	            </tr>
	            <tr>
		            <td style="width: 150px">
			            <asp:Label id="ShipFaxLabel" runat="server" Text="<%$ Resources:ADNCRM,REGISTERCRM_FAX %>" EnableViewState="False" />
		            </td>
		            <td style="width: 400px">
		                <asp:TextBox id="ShipFaxField" runat="server" style="width: 300px" />
		            </td>
		            <td></td>
	            </tr>
            </table>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
    <asp:ValidationSummary ID='ValidationSummary2' runat='server' CssClass='Error' ShowSummary='true' ValidationGroup="Main" /><br />
    <asp:ValidationSummary ID='ValidationSummary1' runat='server' CssClass='Error' ShowSummary='true' ValidationGroup="Billing" /><br />
    <asp:ValidationSummary ID='ValidationSummary3' runat='server' CssClass='Error' ShowSummary='true' ValidationGroup="Shipping" /><br />
    <asp:Label ID="LblErrCaptcha" runat="server"  CssClass='Error' EnableViewState="false" /><br />
	<telerik:RadCaptcha ID="RadCaptcha1" runat="server" ValidationGroup="Main" ErrorMessage="<%$ Resources:ADNCRM,REGISTERCRM_INVALIDCAPTCHA|Invalid_confirmation_string_retry. %>"
			CaptchaTextBoxLabel="<%$ Resources:ADNCRM,CAPTCHA_TEXT|Enter_the_code_shown %>" Display="Dynamic" EnableRefreshImage="true"  >
        <CaptchaImage  BackgroundNoise='Medium' EnableCaptchaAudio="true" LineNoise="Medium" FontWarp="Medium" />
	</telerik:RadCaptcha>
    <telerik:RadAjaxManagerProxy ID="RAMPProfile" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                    <telerik:AjaxUpdatedControl ControlID="FormDecorator1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
</asp:Content>
<asp:Content ID="Content3" runat='server' ContentPlaceHolderID='ContentPlaceHolderButtons1'>
    <asp:PlaceHolder ID="PlaceHolderButtons" runat="server" />
</asp:Content>
